﻿<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.nobody.facepk.pojo.SessionUser"%>
<%@page import="com.nobody.facepk.model.Picture"%>
<%@page import="com.nobody.facepk.model.Friends"%>
<%@page import="com.nobody.facepk.model.User"%>
<%@page import="com.nobody.facepk.service.UserService"%>
<%@page import="java.util.Set"%>
<%@page import="java.util.List;"%>
<html>
  <head>
    <title>	打分界面</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
  </head>
  <%
  SessionUser user = (SessionUser)request.getSession().getAttribute("SESSION_USER");
  Picture pic = (Picture)request.getAttribute("picture");
  
  String picPath = pic.getPath();
  String picName = pic.getName();
  String realPath = "pictures/"+pic.getUserId()+"/"+picPath;
  
  List users  = (List)request.getAttribute("users");  //投过票的人
  %>
  <body>
   	评分界面<br/>
    <form action="scoringPic.do" method="post">  
    <table>
   	<img src="<%=realPath %>" height="80" width="80"/><br/>
   	 目前已经投票的人:
   	 <%
   	 for(int i = 0 ;i < users.size() ; i ++){
   	 User temp = (User)users.get(i);
   	 %>
   	 <%=temp.getName()%>
   	 <% 
   	 }
   	 %>
   	 <br/>
  	 请填写分数:	<input type="text" size = "20" length="20" id="score" name="score" /><br/>
  	 <input type="hidden" value="<%=pic.getId()%>" size = "20" length="20" id="pid" name="pid" />
    <input type="submit" value="提交" />
    </table>
   
    </form>
  </body>
    
</html>
